package org.jeecg.modules.engine.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.engine.entity.Task;
import org.jeecg.modules.engine.entity.vo.TaskVo;
import org.jeecg.modules.engine.mapper.TaskMapper;
import org.jeecg.modules.engine.service.ITaskService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 任务表
 * @Author: jeecg-boot
 * @Date:   2020-07-21
 * @Version: V1.0
 */
@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements ITaskService {

	@Autowired
	private TaskMapper taskMapper;

	@Override
	public List<Task> selectByMainId(String mainId) {
		return taskMapper.selectByMainId(mainId);
	}

	@Override
	public IPage<TaskVo> selectByProcId(Page<TaskVo> page, TaskVo taskVo) {
		return baseMapper.selectByProcId(page,taskVo);
	}

	@Override
	public TaskVo selectByTaskId(String taskId) {
		return baseMapper.selectByTaskId(taskId);
	}

	@Override
	public String selectIdByProcAndFrame(String frameId, String procId) {
		return baseMapper.selectIdByProcAndFrame(procId,frameId);
	}
}
